/*
 *    Copyright (c) 2018-2025, boss All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright
 * notice, this list of conditions and the following disclaimer in the
 * documentation and/or other materials provided with the distribution.
 * Neither the name of the boss developer nor the names of its
 * contributors may be used to endorse or promote products derived from
 * this software without specific prior written permission.
 * Author: boss
 */

package com.hopes.bizz.stop.manage.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.time.LocalDateTime;

@Data
public class ClosedDriveStopCarRecordDTO{

    private static final long serialVersionUID = 1L;

    /**
     * 所属停车场
     */
    @Schema(description = "所属停车场")
    @NotNull(message = "所属停车场不能为空")
    private Long stopParkId;

    /**
     * 到访企业
     */
    @Schema(description = "到访企业")
    @NotNull(message = "到访企业不能为空")
    private Long companyId;

    /**
     * 运单号
     */
    @Schema(description = "运单号")
    @NotBlank(message = "运单号不能为空")
    private String waybillNumber;

    /**
     * 接收人
     */
    @Schema(description = "接收人")
    @NotBlank(message = "接收人不能为空")
    private String receivePerson;

    /**
     * 接收人联系电话
     */
    @Schema(description = "接收人联系电话")
    @NotBlank(message = "接收人联系电话不能为空")
    private String receivePhone;

    /**
     * 开始时间
     */
    @Schema(description = "开始时间")
    @NotNull(message = "出入时间不能为空")
    private LocalDateTime inDate;

    /**
     * 结束时间
     */
    @Schema(description = "结束时间")
    @NotNull(message = "出入时间不能为空")
    private LocalDateTime outDate;

    /**
     * 备注说明
     */
    @Schema(description = "备注说明")
    private String remark;

    /**
     * 备案车辆
     */
    @Schema(description = "备案车辆")
    @NotNull(message = "备案车辆不能为空")
    private Boolean referenceFlag;

    /**
     * 车辆
     */
    @Schema(description = "车辆")
    private Long carId;

    /**
     * 车牌号
     */
    @Schema(description = "车牌号")
    @NotNull(message = "车牌号不能为空")
    private String plateNumber;

    /**
     * 车辆类型
     */
    @Schema(description = "车辆类型")
    @NotNull(message = "车辆类型不能为空")
    private Long carType;

    /**
     * 驾驶员
     */
    @Schema(description = "驾驶员")
    @NotBlank(message = "驾驶员不能为空")
    private String driver;

    /**
     * 驾驶员联系电话
     */
    @Schema(description = "驾驶员联系电话")
    @NotBlank(message = "驾驶员联系电话不能为空")
    private String driverPhone;

    /**
     * 身份证号
     */
    @Schema(description = "身份证号")
    @NotBlank(message = "驾驶员身份证号不能为空")
    private String driverNumber;

    /**
     * 押运员
     */
    @Schema(description = "押运员")
    @NotBlank(message = "押运员不能为空")
    private String supercargo;

    /**
     * 押运员联系电话
     */
    @Schema(description = "押运员联系电话")
    @NotBlank(message = "押运员联系电话不能为空")
    private String supercargoPhone;

    /**
     * 身份证号
     */
    @Schema(description = "身份证号")
    @NotBlank(message = "押运员身份证号不能为空")
    private String supercargoNumber;

}
